//
//  DataBaseManager.h
//  IntelligentHousehold
//
//  Created by wmwMAC on 17/6/20.
//  Copyright © 2017年 Cassie. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <FMDB/FMDB.h>



@interface DataBaseManager : NSObject
@property (nonatomic, strong) FMDatabase *db;
+ (DataBaseManager *)shareInstance;
-(void)openDB;
-(void)closeDB;
-(void)createTable;
-(void)dropTable;
-(BOOL)insertTel:(NSString *)tel Time:(NSString *)time;
-(NSMutableArray *)selectAll;
-(BOOL)selectMovieById:(NSString *)mId;
-(void)deleteMovieById:(NSString *)mId;
@end
